#! /usr/bin/env python
import hashlib , base64
def get_token(cluster, passwd):
  name = cluster[cluster.find('/')+2:cluster.find('.')]
  return base64.b64encode(name) + ':' + hashlib.md5(passwd).hexdigest()
